﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EasySite.Models
{
    public partial class Page
    {
        public void UpdateValues(Page newPage)
        {
            this.Content = newPage.Content;
            this.Description = newPage.Description;
            this.Keywords = newPage.Keywords;
            this.LayoutSrc = newPage.LayoutSrc;
            this.PageCategoryID = newPage.PageCategoryID;
            this.ReadsCount = newPage.ReadsCount;
            this.Title = newPage.Title;
            this.Url = newPage.Url;
            this.UseView = newPage.UseView;
            this.ViewSrc = newPage.ViewSrc;
            this.UpdatedDate = DateTime.Now;
        }
    }
}
